package VN.EDU.IMIC.DEVELOPER.TRANTHITHANHNGA.ARRAY.EX4;

public class Views {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int[] arr = new int[] { 1,2,4,5,10,100,2,-22,100,99,80,5 };
		Controllers cObj = new Controllers();
		System.out.println("Array contains index of min value: ");
		int[] kq1 = new int [cObj.yieldMinArray(arr, cObj.yieldMin(arr)).length];
		kq1 = cObj.yieldMinArray(arr, cObj.yieldMin(arr));
		for (int i = 0; i < kq1.length; i++) {
			System.out.println("\t" + kq1[i] + "");

			System.out.println("Array contains index of max value: ");
			int[] kq2 = new int[cObj.yieldMaxArray(arr, cObj.yieldMax(arr)).length];
			kq2 = cObj.yieldMaxArray(arr, cObj.yieldMin(arr));
			for (int iValue : kq2) {
				System.out.println("\t" + iValue + "");
			}

		}
	}
}
